package org.gd.hellojaxb.privat24.statements;

import javax.xml.bind.annotation.*;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "statement")
public class Statement {

    @XmlAttribute(name = "idFront")
    private String idFront;
    @XmlAttribute(name = "linked")
    private String linked;
    @XmlAttribute(name = "entryType")
    private String entryType;
    @XmlAttribute(name = "mcc")
    private String mcc;
    @XmlAttribute(name = "code")
    private String code;
    @XmlAttribute(name = "tranRef")
    private String tranRef;
    @XmlAttribute(name = "approval")
    private String approval;

    @XmlElement(name = "source")
    private StatementSource source;
    @XmlElement(name = "amount")
    private StatementAmount amount;
    @XmlElement(name = "original")
    private StatementAmount original;
    @XmlElement(name = "fee")
    private String fee;
    @XmlElement(name = "discount")
    private String discount;
    @XmlElement(name = "trandc")
    private String trandc;
    @XmlElement(name = "posted")
    private String posted;
    @XmlElement(name = "valuedate")
    private StatementValueDate date;
    @XmlElement(name = "country")
    private String country;
    @XmlElement(name = "details")
    private String details;
    @XmlElement(name = "rest")
    private String rest;
    @XmlElement(name = "descr")
    private String descr;


    public Statement() {

        idFront="8185071437";
        linked="false";
        entryType="S";
        mcc="4829";
        code="P14";
        tranRef="360313347";
        approval="365686";

        source = new StatementSource();
        amount = new StatementAmount();
        original = new StatementAmount();
        fee = "0.00";
        discount = "0.00";
        trandc = "CR";
        posted = "10.12.2012";
        date = new StatementValueDate();
        country = "UKR";
        details = " ";
        rest = "3.49";
        descr = "ABANK,HEAD OFFICE,DNEPROPETR-SK,UA";
    }

    public String getIdFront() {
        return idFront;
    }

    public String getLinked() {
        return linked;
    }

    public String getEntryType() {
        return entryType;
    }

    public String getMcc() {
        return mcc;
    }

    public String getCode() {
        return code;
    }

    public String getTranRef() {
        return tranRef;
    }

    public String getApproval() {
        return approval;
    }

    public StatementSource getSource() {
        return source;
    }

    public StatementAmount getAmount() {
        return amount;
    }

    public StatementAmount getOriginal() {
        return original;
    }

    public String getFee() {
        return fee;
    }

    public String getDiscount() {
        return discount;
    }

    public String getTrandc() {
        return trandc;
    }

    public String getPosted() {
        return posted;
    }

    public StatementValueDate getDate() {
        return date;
    }

    public String getCountry() {
        return country;
    }

    public String getDetails() {
        return details;
    }

    public String getRest() {
        return rest;
    }

    public String getDescr() {
        return descr;
    }
}
